.class public Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;
.super Lcom/wqmobile/sdk/protocol/cmd/a;


# instance fields
.field private d:[B

.field private e:[B

.field private f:[B

.field private g:[B


# direct methods
.method public constructor <init>()V
    .locals 2

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;-><init>()V

    sget-object v0, Lcom/wqmobile/sdk/protocol/cmd/d;->c:Lcom/wqmobile/sdk/protocol/cmd/d;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/cmd/d;->b()B

    move-result v0

    iput-byte v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->b:B

    const/16 v0, 0x3f

    iput-byte v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->a:B

    const/4 v0, 0x1

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->d:[B

    const/4 v0, 0x2

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->e:[B

    const/4 v0, 0x4

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->f:[B

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->d:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->e:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->f:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private a(I)V
    .locals 4

    const/4 v3, 0x2

    const/4 v2, 0x0

    invoke-static {p1, v3}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(II)[B

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->e:[B

    invoke-static {v1, v2, v0, v2, v3}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    return-void
.end method

.method public static b(Ljava/lang/String;)Ljava/lang/String;
    .locals 6

    const/4 v3, 0x1

    const-string v0, "File"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_1

    move v2, v3

    move-object v3, p0

    :goto_0
    invoke-virtual {v3, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    if-gtz v4, :cond_0

    move-object v0, v3

    :goto_1
    return-object v0

    :cond_0
    invoke-virtual {v3, v1, v0}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    add-int/lit8 v2, v2, 0x1

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    move-object v5, v3

    move-object v3, v1

    move-object v1, v5

    goto :goto_0

    :cond_1
    move-object v0, p0

    goto :goto_1
.end method


# virtual methods
.method public final a([BII)I
    .locals 6

    const/4 v5, 0x0

    sub-int v0, p3, p2

    add-int/lit8 v0, v0, 0x1

    invoke-super {p0, p1, p2, p3}, Lcom/wqmobile/sdk/protocol/cmd/a;->a([BII)I

    move-result v1

    if-nez v1, :cond_0

    move v0, v5

    :goto_0
    return v0

    :cond_0
    move v2, p3

    :goto_1
    aget-byte v3, p1, v2

    iget-byte v4, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->a:B

    if-eq v3, v4, :cond_1

    if-gtz v2, :cond_3

    :cond_1
    if-gt v1, v2, :cond_2

    if-nez v2, :cond_4

    :cond_2
    move v0, v5

    goto :goto_0

    :cond_3
    add-int/lit8 v2, v2, -0x1

    goto :goto_1

    :cond_4
    sub-int/2addr v2, v1

    new-array v3, v2, [B

    iput-object v3, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    iget-object v3, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    invoke-static {v3, v5, p1, v1, v2}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    goto :goto_0
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/cmd/c;)V
    .locals 3

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->d:[B

    const/4 v1, 0x0

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/c;->a()B

    move-result v2

    aput-byte v2, v0, v1

    return-void
.end method

.method public final a()[B
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    return-object v0
.end method

.method public final b()Ljava/lang/String;
    .locals 3

    :try_start_0
    new-instance v0, Ljava/lang/String;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    const-string v2, "UTF-8"

    invoke-direct {v0, v1, v2}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    const-string v0, ""

    goto :goto_0
.end method

.method public final b([B)V
    .locals 4

    const/4 v3, 0x0

    if-eqz p1, :cond_0

    array-length v0, p1

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->a(I)V

    new-array v1, v0, [B

    iput-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    invoke-static {v1, v3, p1, v3, v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    invoke-static {p1}, Lcom/wqmobile/sdk/protocol/cmd/b;->d([B)J

    move-result-wide v0

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(J)[B

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->f:[B

    const/4 v2, 0x4

    invoke-static {v1, v3, v0, v3, v2}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0, v3}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->a(I)V

    goto :goto_0
.end method

.method public final b([BII)Z
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x2

    invoke-virtual {p0, p1, v0, p2, p3}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->a([BIII)Z

    move-result v0

    return v0
.end method

.method public final c()[B
    .locals 5

    invoke-super {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->e()I

    move-result v0

    invoke-super {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->c()[B

    move-result-object v1

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    array-length v4, v4

    invoke-static {v1, v0, v2, v3, v4}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    :cond_0
    array-length v0, v1

    const/4 v2, 0x1

    sub-int/2addr v0, v2

    iget-byte v2, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->a:B

    aput-byte v2, v1, v0

    return-object v1
.end method

.method public doAction(Lcom/wqmobile/sdk/protocol/a;)Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->d:[B

    aget-byte v0, v0, v2

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/c;->c:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/c;->a()B

    move-result v1

    if-ne v0, v1, :cond_0

    invoke-virtual {p1, p0}, Lcom/wqmobile/sdk/protocol/a;->a(Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;)Lcom/wqmobile/sdk/protocol/cmd/a;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->d:[B

    aget-byte v0, v0, v2

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/c;->a:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/c;->a()B

    move-result v1

    if-ne v0, v1, :cond_1

    invoke-virtual {p1, p0}, Lcom/wqmobile/sdk/protocol/a;->b(Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;)Lcom/wqmobile/sdk/protocol/cmd/a;

    move-result-object v0

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->d:[B

    aget-byte v0, v0, v2

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/c;->j:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/c;->a()B

    move-result v1

    if-ne v0, v1, :cond_2

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/a;->h()Lcom/wqmobile/sdk/protocol/cmd/a;

    move-result-object v0

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->d:[B

    aget-byte v0, v0, v2

    sget-object v1, Lcom/wqmobile/sdk/protocol/cmd/c;->k:Lcom/wqmobile/sdk/protocol/cmd/c;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/c;->a()B

    move-result v1

    if-ne v0, v1, :cond_3

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/a;->i()Lcom/wqmobile/sdk/protocol/cmd/a;

    move-result-object v0

    goto :goto_0

    :cond_3
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected final e()I
    .locals 2

    invoke-super {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->e()I

    move-result v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->g:[B

    array-length v1, v1

    add-int/2addr v0, v1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public final g()I
    .locals 2

    :try_start_0
    invoke-virtual {p0}, Lcom/wqmobile/sdk/protocol/cmd/WQCommandContent;->b()Ljava/lang/String;

    move-result-object v0

    const-string v1, "Size"

    invoke-static {v0, v1}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    :goto_0
    if-gez v0, :cond_0

    const v0, 0xfde8

    :cond_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method
